package com.koron.order.experiment.service;

import com.github.pagehelper.PageInfo;
import com.koron.bean.base.BaseQueryBean;
import com.koron.common.core.business.common.service.CommonService;
import com.koron.order.experiment.bean.po.ExperimentItemPo;
import com.koron.order.experiment.bean.vo.ExperimentItemVo;
import org.koron.ebs.mybatis.SessionFactory;

import java.util.List;

/**
 * (ExperimentItem)表服务接口
 *
 * @author zhouj
 * @since 2021-10-08 17:33:33
 */
public interface ExperimentItemService extends CommonService {

    int insertOrUpdate(SessionFactory factory, ExperimentItemPo experimentItem);

    int insertOrUpdateBatch(SessionFactory factory, List<ExperimentItemPo> experimentItemList);

    int insert(SessionFactory factory, ExperimentItemPo experimentItem);

    int insertBatch(SessionFactory factory, List<ExperimentItemPo> experimentItems);

    int update(SessionFactory factory, ExperimentItemPo experimentItem);

    int deleteById(SessionFactory factory, String id);

    ExperimentItemPo queryById(SessionFactory factory, String id);

    PageInfo queryPageList(SessionFactory factory, ExperimentItemPo experimentItem, BaseQueryBean pageBean);

    List<ExperimentItemPo> queryList(SessionFactory factory, ExperimentItemPo experimentItem);

    List<ExperimentItemVo> queryByEquipmentId(SessionFactory factory, String orderId, String experimentEquipId);
}
